module Puppet::Parser::Functions
  newfunction(:set_profile_applied) do |args|
    roleid = args[0]
    address = args[1]
    cmd="curl -s \"%s/setRoleAttr?roleid=%s&name=%s&value=%s\"" % [address, roleid, "ProfileABCApplied", "True"]
    puts cmd
    system(cmd)
  end
end
